package com.jandar.spider;

import com.jandar.spider.service.ContentBiddingStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("statistics")
public class StatisticsController {
    @Autowired
    private ContentBiddingStatisticsService contentBiddingStatisticsService;

    @RequestMapping("checkData")
    public ResponseEntity<Map<String, Object>> checkData() {
        return contentBiddingStatisticsService.checkData();
    }
}
